package com.yuanfeng.goods.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.yuanfeng.commoms.vo.goods.ManageShopBaseQueryResultVO;
import com.yuanfeng.commoms.vo.goods.ManageTransportAreaResultVO;
import com.yuanfeng.commoms.vo.goods.ManageTransportTemplateResultVO;
import com.yuanfeng.goods.dto.MerchantShopGoodsCatDTO;
import com.yuanfeng.goods.entity.GoodsDraftEntity;
import com.yuanfeng.goods.vo.ManageGdsCommonQueryResultStrVO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @ClassName GoodsDraftMapper
 * @Description 草稿箱
 * @Author liulh
 * @Date 2023/8/11 9:21
 * @Version 1.0
 **/
@Mapper
public interface GoodsDraftMapper extends BaseMapper<GoodsDraftEntity> {

    List<ManageGdsCommonQueryResultStrVO> queryDraft(@Param("shopId")String shopId, @Param("catId")Integer catId);

    ManageTransportAreaResultVO selectAreaById(@Param("transportAreaId")Integer transportAreaId);

    ManageTransportTemplateResultVO selectTemplateById(@Param("transportTemplate")Integer transportTemplate);

    List<MerchantShopGoodsCatDTO> queryShopGoodsCatList(@Param("goodsCatIdList") List<Integer> goodsCatIdList);

    String queryShopGoodsCatName(@Param("goodsCatId") Integer goodsCatId);

    Integer queryDraftCount(@Param("shopId")String shopId, @Param("catId")Integer catId);

    ManageShopBaseQueryResultVO selectByShopId2(@Param("shopId") String shopId);

    int insertDraft(@Param("shopId") String shopId,@Param("catId") Integer catId,@Param("draftName") String draftName,@Param("draftContent") String draftContent);
}
